﻿using Engine;
using Game.NetWork.Packages;
using Game.NetWork;
using Game.Server.Event;
using Game.Server.PlayerEvent;
using System;
using Game.IContentReader;
using System.Text;
using System.Collections.Generic;
using GameEntitySystem;

namespace Game.Server.Plugins
{
    public class NoAnimalZHPlugin : ServerPlugin, ICreatureSpawnEventHandle
    {
        public override int Version => 10000;

        public override string Name => "无动物测试";

        public byte FirstLevel => 0;


        public override void Initialize()
        {
            CreatureSpawnEventManager.AddObject(this);
        }

        public override void Load()
        {
        }

        public override void Save()
        {
        }

        public bool Update(SubsystemCreatureSpawn subsystemCreatureSpawn, float dt)
        {
            return true;
        }

        public void InitCreatureTypes(SubsystemCreatureSpawn subsystemCreatureSpawn, List<SubsystemCreatureSpawn.CreatureType> creatureTypes)
        {
            creatureTypes.Clear();
        }

        public void OnEntityAdded(SubsystemCreatureSpawn subsystemCreatureSpawn, Entity entity)
        {
        }

        public void OnEntityRemoved(SubsystemCreatureSpawn subsystemCreatureSpawn, Entity entity)
        {
        }

        public void OnPlayerSpawned(PlayerData playerData, Entity playerEntity, Vector3 position)
        {
        }
    }
}